<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>空列表页面</title>
  <!-- Bootstrap 5 CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
  
  <style>
    :root {
      --primary: #4F46E5;
      --secondary: #6B7280;
      --light: #F9FAFB;
      --dark: #1F2937;
      --white: #FFFFFF;
      --border: #E5E7EB;
      --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
      --success: #10B981;
      
      /* 不同风格主题色 */
      --style1: #3B82F6; /* 科技蓝 */
      --style2: #EC4899; /* 活力粉 */
      --style3: #10B981; /* 生态绿 */
      --style4: #F59E0B; /* 温暖橙 */
      --style5: #8B5CF6; /* 梦幻紫 */
      --style6: #111827; /* 商务黑 */
    }
    
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: #f5f5f5;
      color: var(--dark);
      min-height: 100vh;
      padding: 0;
      margin: 0;
      transition: background-color 0.3s ease;
    }
    
    .container {
      max-width: 420px;
      margin: 0 auto;
      background-color: var(--white);
      min-height: 100vh;
      box-shadow: var(--shadow);
      overflow: hidden;
      position: relative;
      transition: background-color 0.3s ease;
    }
    
    /* 主页面容器 */
    .empty-page {
      display: none;
      min-height: 100vh;
      flex-direction: column;
    }
    
    .empty-page.active {
      display: flex;
      animation: fadeIn 0.3s ease forwards;
    }
    
    /* 顶部导航栏 */
    .page-header {
      padding: 18px 20px;
      position: relative;
      text-align: center;
      border-bottom: 1px solid var(--border);
      background-color: var(--white);
      transition: all 0.3s ease;
      z-index: 10;
    }
    
    .page-title {
      font-size: 18px;
      font-weight: 600;
      margin: 0;
    }
    
    .header-actions {
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      gap: 15px;
    }
    
    .header-btn {
      background: none;
      border: none;
      color: var(--dark);
      font-size: 20px;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    .header-btn:active {
      transform: scale(0.9);
    }
    
    /* 内容区域 */
    .content {
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 30px 20px;
      text-align: center;
    }
    
    .empty-icon {
      font-size: 60px;
      color: var(--primary);
      margin-bottom: 25px;
      opacity: 0.8;
      transition: all 0.3s ease;
    }
    
    .empty-title {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 10px;
      color: var(--dark);
    }
    
    .empty-description {
      color: var(--secondary);
      font-size: 14px;
      max-width: 280px;
      margin-bottom: 30px;
      line-height: 1.5;
    }
    
    .action-buttons {
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 100%;
      max-width: 240px;
    }
    
    .btn-primary {
      padding: 12px;
      background-color: var(--primary);
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    .btn-primary:hover {
      opacity: 0.9;
    }
    
    .btn-primary:active {
      transform: scale(0.98);
    }
    
    .btn-secondary {
      padding: 12px;
      background-color: var(--light);
      color: var(--dark);
      border: 1px solid var(--border);
      border-radius: 8px;
      font-size: 16px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    .btn-secondary:hover {
      background-color: #f0f0f0;
    }
    
    .btn-secondary:active {
      transform: scale(0.98);
    }
    
    /* 推荐内容区域 */
    .recommendations {
      width: 100%;
      margin-top: 40px;
      padding: 0 15px;
    }
    
    .recommendations-title {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 15px;
      text-align: left;
    }
    
    .recommendation-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    
    .recommendation-item {
      display: flex;
      align-items: center;
      padding: 12px;
      background-color: var(--light);
      border-radius: 8px;
      transition: transform 0.2s ease;
    }
    
    .recommendation-item:active {
      transform: scale(0.99);
    }
    
    .recommendation-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: var(--primary);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      margin-right: 12px;
      flex-shrink: 0;
    }
    
    .recommendation-info {
      flex-grow: 1;
      text-align: left;
    }
    
    .recommendation-name {
      font-size: 15px;
      font-weight: 500;
      margin-bottom: 2px;
    }
    
    .recommendation-meta {
      font-size: 12px;
      color: var(--secondary);
    }
    
    .recommendation-action {
      background-color: var(--primary);
      color: white;
      border: none;
      border-radius: 4px;
      padding: 4px 10px;
      font-size: 13px;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    .recommendation-action:active {
      transform: scale(0.95);
    }
    
    /* 样式切换器 */
    .style-switcher {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1010;
      background-color: white;
      border-radius: 8px;
      box-shadow: var(--shadow);
      overflow: hidden;
      width: 180px;
      transition: all 0.3s ease;
      transform: translateX(0);
      opacity: 1;
    }
    
    .style-switcher.hidden {
      transform: translateX(200px);
      opacity: 0;
      pointer-events: none;
    }
    
    .switcher-toggle {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1020;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: var(--primary);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--shadow);
      border: none;
      font-size: 18px;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    
    .switcher-header {
      padding: 10px 16px;
      font-size: 14px;
      font-weight: 600;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .switcher-close {
      background: none;
      border: none;
      color: var(--secondary);
      font-size: 16px;
      cursor: pointer;
    }
    
    .switcher-option {
      padding: 12px 16px;
      font-size: 14px;
      cursor: pointer;
      transition: background-color 0.2s;
      display: flex;
      align-items: center;
    }
    
    .switcher-color {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      margin-right: 10px;
    }
    
    .switcher-option:hover {
      background-color: #f9f9f9;
    }
    
    .switcher-option.active {
      background-color: var(--primary);
      color: white;
    }
    
    /* 风格1：科技蓝 */
    .style-1 {
      --primary: var(--style1);
    }
    
    .style-1 .empty-icon {
      text-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
    }
    
    /* 风格2：活力粉 */
    .style-2 {
      --primary: var(--style2);
    }
    
    .style-2 .page-header {
      background-color: var(--primary);
      color: white;
      border-bottom: none;
    }
    
    .style-2 .header-btn {
      color: white;
    }
    
    .style-2 .btn-primary,
    .style-2 .btn-secondary {
      border-radius: 20px;
    }
    
    .style-2 .recommendation-item {
      border-radius: 12px;
    }
    
    .style-2 .empty-icon {
      transform: rotate(-5deg);
    }
    
    /* 风格3：生态绿 */
    .style-3 {
      --primary: var(--style3);
    }
    
    .style-3 .container {
      background-color: #F8FAFC;
    }
    
    .style-3 .empty-icon {
      background-color: rgba(16, 185, 129, 0.1);
      border-radius: 50%;
      width: 100px;
      height: 100px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .style-3 .recommendation-item {
      background-color: rgba(16, 185, 129, 0.05);
      border: 1px dashed var(--primary);
    }
    
    /* 风格4：温暖橙 */
    .style-4 {
      --primary: var(--style4);
    }
    
    .style-4 .page-title {
      color: var(--primary);
      font-weight: 700;
    }
    
    .style-4 .btn-primary {
      background: linear-gradient(45deg, var(--primary), #FBBF24);
      box-shadow: 0 3px 10px rgba(245, 158, 11, 0.2);
    }
    
    .style-4 .recommendation-avatar {
      box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    }
    
    /* 风格5：梦幻紫 */
    .style-5 {
      --primary: var(--style5);
    }
    
    .style-5 .container {
      background-color: #FCFAFF;
    }
    
    .style-5 .empty-icon {
      background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(255,255,255,0) 70%);
      border-radius: 50%;
      width: 100px;
      height: 100px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .style-5 .recommendation-item {
      border-radius: 12px;
      background-color: rgba(139, 92, 246, 0.03);
    }
    
    /* 风格6：商务黑 */
    .style-6 {
      --primary: #60A5FA;
      --secondary: #9CA3AF;
      --light: #1F2937;
      --dark: #F9FAFB;
      --white: #111827;
      --border: #374151;
      --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    
    .style-6 body {
      background-color: #030712;
    }
    
    .style-6 .container {
      background-color: var(--white);
    }
    
    .style-6 .page-header {
      background-color: var(--light);
      border-bottom-color: var(--border);
    }
    
    .style-6 .header-btn,
    .style-6 .page-title {
      color: var(--dark);
    }
    
    .style-6 .btn-secondary {
      background-color: var(--light);
      color: var(--dark);
      border-color: var(--border);
    }
    
    .style-6 .recommendation-item {
      background-color: var(--light);
    }
    
    .style-6 .style-switcher {
      background-color: var(--light);
    }
    
    .style-6 .switcher-header {
      border-bottom-color: var(--border);
      color: var(--dark);
    }
    
    .style-6 .switcher-option {
      color: var(--dark);
    }
    
    .style-6 .switcher-option:hover {
      background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* 动画效果 */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    @keyframes pulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.05); }
      100% { transform: scale(1); }
    }
    
    .pulse {
      animation: pulse 2s infinite;
    }
    
    /* 响应式调整 */
    @media (max-width: 360px) {
      .content {
        padding: 20px 15px;
      }
      
      .empty-icon {
        font-size: 50px;
      }
    }
  </style>
</head>
<body class="style-1">
  <!-- 样式切换器 -->
  <button class="switcher-toggle">
    <i class="fa fa-paint-brush"></i>
  </button>
  
  <div class="style-switcher hidden">
    <div class="switcher-header">
      选择页面样式
      <button class="switcher-close"><i class="fa fa-times"></i></button>
    </div>
    <div class="switcher-option active" data-style="1">
      <span class="switcher-color" style="background-color: var(--style1);"></span>
      科技蓝
    </div>
    <div class="switcher-option" data-style="2">
      <span class="switcher-color" style="background-color: var(--style2);"></span>
      活力粉
    </div>
    <div class="switcher-option" data-style="3">
      <span class="switcher-color" style="background-color: var(--style3);"></span>
      生态绿
    </div>
    <div class="switcher-option" data-style="4">
      <span class="switcher-color" style="background-color: var(--style4);"></span>
      温暖橙
    </div>
    <div class="switcher-option" data-style="5">
      <span class="switcher-color" style="background-color: var(--style5);"></span>
      梦幻紫
    </div>
    <div class="switcher-option" data-style="6">
      <span class="switcher-color" style="background-color: var(--style6);"></span>
      商务黑
    </div>
  </div>
  
  <div class="container">
    <!-- 风格1：科技蓝 - 空消息列表 -->
    <div class="empty-page active" id="page1">
      <div class="page-header">
        <h1 class="page-title">消息</h1>
        <div class="header-actions">
          <button class="header-btn" id="settings1"><i class="fa fa-cog"></i></button>
        </div>
      </div>
      
      <div class="content">
        <div class="empty-icon">
          <i class="fa fa-envelope-o"></i>
        </div>
        <h2 class="empty-title">暂无消息</h2>
        <p class="empty-description">当有新消息时，会在这里显示。赶紧去和好友互动吧！</p>
        
        <div class="action-buttons">
          <button class="btn-primary" id="findFriends1">发现好友</button>
          <button class="btn-secondary" id="inviteFriends1">邀请好友</button>
        </div>
        
        <div class="recommendations">
          <h3 class="recommendations-title">推荐联系人</h3>
          <div class="recommendation-list">
            <div class="recommendation-item">
              <div class="recommendation-avatar">张</div>
              <div class="recommendation-info">
                <div class="recommendation-name">张三</div>
                <div class="recommendation-meta">3个共同好友</div>
              </div>
              <button class="recommendation-action">关注</button>
            </div>
            <div class="recommendation-item">
              <div class="recommendation-avatar">李</div>
              <div class="recommendation-info">
                <div class="recommendation-name">李四</div>
                <div class="recommendation-meta">在同一个群组</div>
              </div>
              <button class="recommendation-action">关注</button>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 风格2：活力粉 - 空好友列表 -->
    <div class="empty-page" id="page2">
      <div class="page-header">
        <h1 class="page-title">好友</h1>
        <div class="header-actions">
          <button class="header-btn" id="search2"><i class="fa fa-search"></i></button>
          <button class="header-btn" id="add2"><i class="fa fa-plus"></i></button>
        </div>
      </div>
      
      <div class="content">
        <div class="empty-icon pulse">
          <i class="fa fa-users"></i>
        </div>
        <h2 class="empty-title">还没有好友</h2>
        <p class="empty-description">添加好友，一起分享生活点滴，开始互动吧！</p>
        
        <div class="action-buttons">
          <button class="btn-primary" id="addFriends2">添加好友</button>
          <button class="btn-secondary" id="importContacts2">导入通讯录</button>
        </div>
        
        <div class="recommendations">
          <h3 class="recommendations-title">可能认识的人</h3>
          <div class="recommendation-list">
            <div class="recommendation-item">
              <div class="recommendation-avatar">王</div>
              <div class="recommendation-info">
                <div class="recommendation-name">王五</div>
                <div class="recommendation-meta">5个共同好友</div>
              </div>
              <button class="recommendation-action">加好友</button>
            </div>
            <div class="recommendation-item">
              <div class="recommendation-avatar">赵</div>
              <div class="recommendation-info">
                <div class="recommendation-name">赵六</div>
                <div class="recommendation-meta">来自同所学校</div>
              </div>
              <button class="recommendation-action">加好友</button>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 风格3：生态绿 - 空收藏列表 -->
    <div class="empty-page" id="page3">
      <div class="page-header">
        <h1 class="page-title">收藏</h1>
        <div class="header-actions">
          <button class="header-btn" id="menu3"><i class="fa fa-ellipsis-v"></i></button>
        </div>
      </div>
      
      <div class="content">
        <div class="empty-icon">
          <i class="fa fa-star-o"></i>
        </div>
        <h2 class="empty-title">暂无收藏内容</h2>
        <p class="empty-description">遇到感兴趣的内容？点击收藏，方便日后查看。</p>
        
        <div class="action-buttons">
          <button class="btn-primary" id="explore3">探索内容</button>
        </div>
        
        <div class="recommendations">
          <h3 class="recommendations-title">热门推荐</h3>
          <div class="recommendation-list">
            <div class="recommendation-item">
              <div class="recommendation-avatar">旅</div>
              <div class="recommendation-info">
                <div class="recommendation-name">热门旅游目的地</div>
                <div class="recommendation-meta">10k+ 人收藏</div>
              </div>
              <button class="recommendation-action">收藏</button>
            </div>
            <div class="recommendation-item">
              <div class="recommendation-avatar">食</div>
              <div class="recommendation-info">
                <div class="recommendation-name">美食制作教程</div>
                <div class="recommendation-meta">5k+ 人收藏</div>
              </div>
              <button class="recommendation-action">收藏</button>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 风格4：温暖橙 - 空通知列表 -->
    <div class="empty-page" id="page4">
      <div class="page-header">
        <h1 class="page-title">通知</h1>
        <div class="header-actions">
          <button class="header-btn" id="markAll4"><i class="fa fa-check-square-o"></i></button>
        </div>
      </div>
      
      <div class="content">
        <div class="empty-icon">
          <i class="fa fa-bell-o"></i>
        </div>
        <h2 class="empty-title">暂无通知</h2>
        <p class="empty-description">当有新的互动或系统通知时，会在这里显示。</p>
        
        <div class="action-buttons">
          <button class="btn-primary" id="checkSettings4">通知设置</button>
          <button class="btn-secondary" id="viewActivity4">查看历史动态</button>
        </div>
        
        <div class="recommendations">
          <h3 class="recommendations-title">你可能感兴趣</h3>
          <div class="recommendation-list">
            <div class="recommendation-item">
              <div class="recommendation-avatar">活</div>
              <div class="recommendation-info">
                <div class="recommendation-name">社区活动</div>
                <div class="recommendation-meta">本周六 14:00 开始</div>
              </div>
              <button class="recommendation-action">参与</button>
            </div>
            <div class="recommendation-item">
              <div class="recommendation-avatar">新</div>
              <div class="recommendation-info">
                <div class="recommendation-name">新功能上线</div>
                <div class="recommendation-meta">点击了解详情</div>
              </div>
              <button class="recommendation-action">查看</button>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 风格5：梦幻紫 - 空动态列表 -->
    <div class="empty-page" id="page5">
      <div class="page-header">
        <h1 class="page-title">动态</h1>
        <div class="header-actions">
          <button class="header-btn" id="post5"><i class="fa fa-pencil"></i></button>
        </div>
      </div>
      
      <div class="content">
        <div class="empty-icon">
          <i class="fa fa-newspaper-o"></i>
        </div>
        <h2 class="empty-title">暂无动态</h2>
        <p class="empty-description">关注更多好友，查看他们的动态；或者发布一条自己的动态吧！</p>
        
        <div class="action-buttons">
          <button class="btn-primary" id="createPost5">发布动态</button>
          <button class="btn-secondary" id="followMore5">关注更多</button>
        </div>
        
        <div class="recommendations">
          <h3 class="recommendations-title">推荐关注</h3>
          <div class="recommendation-list">
            <div class="recommendation-item">
              <div class="recommendation-avatar">明</div>
              <div class="recommendation-info">
                <div class="recommendation-name">明星动态</div>
                <div class="recommendation-meta">100万+ 粉丝</div>
              </div>
              <button class="recommendation-action">关注</button>
            </div>
            <div class="recommendation-item">
              <div class="recommendation-avatar">知</div>
              <div class="recommendation-info">
                <div class="recommendation-name">知识分享</div>
                <div class="recommendation-meta">专业内容创作者</div>
              </div>
              <button class="recommendation-action">关注</button>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 风格6：商务黑 - 空订单列表 -->
    <div class="empty-page" id="page6">
      <div class="page-header">
        <h1 class="page-title">订单</h1>
        <div class="header-actions">
          <button class="header-btn" id="filter6"><i class="fa fa-filter"></i></button>
        </div>
      </div>
      
      <div class="content">
        <div class="empty-icon">
          <i class="fa fa-shopping-bag"></i>
        </div>
        <h2 class="empty-title">暂无订单</h2>
        <p class="empty-description">您还没有任何订单记录，去发现心仪的商品吧。</p>
        
        <div class="action-buttons">
          <button class="btn-primary" id="browseShop6">浏览商城</button>
          <button class="btn-secondary" id="viewWishlist6">查看收藏夹</button>
        </div>
        
        <div class="recommendations">
          <h3 class="recommendations-title">为您推荐</h3>
          <div class="recommendation-list">
            <div class="recommendation-item">
              <div class="recommendation-avatar">电</div>
              <div class="recommendation-info">
                <div class="recommendation-name">智能设备</div>
                <div class="recommendation-meta">热销商品</div>
              </div>
              <button class="recommendation-action">查看</button>
            </div>
            <div class="recommendation-item">
              <div class="recommendation-avatar">书</div>
              <div class="recommendation-info">
                <div class="recommendation-name">精选书籍</div>
                <div class="recommendation-meta">限时优惠</div>
              </div>
              <button class="recommendation-action">查看</button>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  
  <!-- Bootstrap JS -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  
  <script>
    // 当前状态
    let currentStyle = 1;
    
    // DOM元素
    const switcherToggle = document.querySelector('.switcher-toggle');
    const switcher = document.querySelector('.style-switcher');
    const switcherClose = document.querySelector('.switcher-close');
    const switcherOptions = document.querySelectorAll('.switcher-option');
    const emptyPages = {
      1: document.getElementById('page1'),
      2: document.getElementById('page2'),
      3: document.getElementById('page3'),
      4: document.getElementById('page4'),
      5: document.getElementById('page5'),
      6: document.getElementById('page6')
    };
    const bodyElement = document.body;
    
    // 初始化
    function init() {
      // 切换器控制
      switcherToggle.addEventListener('click', toggleSwitcher);
      switcherClose.addEventListener('click', toggleSwitcher);
      
      // 切换样式
      switcherOptions.forEach(option => {
        option.addEventListener('click', function() {
          const style = parseInt(this.getAttribute('data-style'));
          switchStyle(style);
          toggleSwitcher();
        });
      });
      
      // 初始化所有页面的交互
      initPageInteractions();
    }
    
    // 初始化页面交互
    function initPageInteractions() {
      // 页面1：消息
      document.getElementById('settings1').addEventListener('click', () => alert('打开消息设置'));
      document.getElementById('findFriends1').addEventListener('click', () => alert('进入发现好友页面'));
      document.getElementById('inviteFriends1').addEventListener('click', () => alert('打开邀请好友界面'));
      
      // 页面2：好友
      document.getElementById('search2').addEventListener('click', () => alert('打开搜索好友'));
      document.getElementById('add2').addEventListener('click', () => alert('添加新好友'));
      document.getElementById('addFriends2').addEventListener('click', () => alert('进入添加好友页面'));
      document.getElementById('importContacts2').addEventListener('click', () => alert('导入通讯录好友'));
      
      // 页面3：收藏
      document.getElementById('menu3').addEventListener('click', () => alert('打开收藏菜单'));
      document.getElementById('explore3').addEventListener('click', () => alert('进入内容探索页面'));
      
      // 页面4：通知
      document.getElementById('markAll4').addEventListener('click', () => alert('标记全部为已读'));
      document.getElementById('checkSettings4').addEventListener('click', () => alert('打开通知设置'));
      document.getElementById('viewActivity4').addEventListener('click', () => alert('查看历史活动'));
      
      // 页面5：动态
      document.getElementById('post5').addEventListener('click', () => alert('发布新动态'));
      document.getElementById('createPost5').addEventListener('click', () => alert('开始创建新动态'));
      document.getElementById('followMore5').addEventListener('click', () => alert('寻找更多可关注的人'));
      
      // 页面6：订单
      document.getElementById('filter6').addEventListener('click', () => alert('筛选订单'));
      document.getElementById('browseShop6').addEventListener('click', () => alert('进入商城浏览'));
      document.getElementById('viewWishlist6').addEventListener('click', () => alert('查看收藏商品'));
      
      // 所有推荐项的交互
      document.querySelectorAll('.recommendation-action').forEach(btn => {
        btn.addEventListener('click', function() {
          const action = this.textContent;
          const name = this.closest('.recommendation-item').querySelector('.recommendation-name').textContent;
          
          if (this.textContent === '关注' || this.textContent === '加好友' || this.textContent === '收藏' || this.textContent === '参与' || this.textContent === '查看') {
            this.textContent = '已' + action;
            this.style.backgroundColor = 'var(--success)';
            alert(`已${action} ${name}`);
          } else {
            const originalAction = this.textContent.replace('已', '');
            this.textContent = originalAction;
            this.style.backgroundColor = 'var(--primary)';
            alert(`取消${originalAction} ${name}`);
          }
        });
      });
    }
    
    // 切换样式选择器显示/隐藏
    function toggleSwitcher() {
      switcher.classList.toggle('hidden');
    }
    
    // 关闭所有页面
    function closeAllPages() {
      Object.values(emptyPages).forEach(page => {
        page.classList.remove('active');
      });
    }
    
    // 切换样式
    function switchStyle(style) {
      // 移除所有样式类
      bodyElement.classList.remove('style-1', 'style-2', 'style-3', 'style-4', 'style-5', 'style-6');
      
      // 添加当前样式类
      bodyElement.classList.add(`style-${style}`);
      
      // 更新当前样式
      currentStyle = style;
      
      // 更新切换器选中状态
      switcherOptions.forEach(option => {
        option.classList.remove('active');
        if (parseInt(option.getAttribute('data-style')) === style) {
          option.classList.add('active');
        }
      });
      
      // 显示对应页面
      closeAllPages();
      emptyPages[style].classList.add('active');
    }
    
    // 键盘导航
    document.addEventListener('keydown', function(e) {
      if (e.key === 'ArrowLeft') {
        let prev = currentStyle - 1;
        if (prev < 1) prev = 6;
        switchStyle(prev);
      } else if (e.key === 'ArrowRight') {
        let next = currentStyle + 1;
        if (next > 6) next = 1;
        switchStyle(next);
      }
    });
    
    // 启动
    init();
  </script>
</body>
</html>
